/*************************************************************************
 * Tic Tac Toe
 *
 * Author: Justin Sheppard
 * Student #: 200811917
 * E-Mail: justin.sheppard@mun.ca
 * ***********************************************************************/
package tictactoe;

/** Move *****************************************************************
 * 
 * Immutable class that represents a player's or ai's move, using the i, j
 * position of the move on the board, and the char to be placed. 
 *  
 * ****************************************************************************/
public final class Move {
	private final int i;
	private final int j;
	private final char piece;
	
	/** Constructor *****************************************************************
	 * 
	 * Creates an object which has members equal to that of the params.
	 * @pre		-	
	 * @params	- i: Row index
	 * 			  j: Col index
	 * 			  piece: X or O
	 * @returns - 
	 * @post	-
	 * ****************************************************************************/
	public Move(int i, int j, char piece){
		this.i = i;
		this.j = j;
		this.piece = piece;
	}
	
	//Accessor to row index
	public int getI(){
		return i;
	}
	
	//Accessor to col index
	public int getJ(){
		return j;
	}
	
	
	//Accessor to which piece 
	public char getPiece(){
		return piece;
	}
}
